package com.aioz.security.controller;

import com.aioz.security.common.ResponseResult;
import com.aioz.security.service.impl.MenuServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/system")
public class MenuController {


    @Autowired
    private MenuServiceImpl menuService;

    @PostMapping("/menu")
    public ResponseResult getMenusByUserId(){
        return menuService.getAllMenusByUserId();
    }
}
